package com.gaocf.example.dto;

import com.gaocf.example.validator.FlagValidator;
import lombok.*;
import org.hibernate.validator.constraints.Length;


@Getter
@Setter
public class User {
    private Integer id;
    @Length(min = 0, max = 10)
    private String userName;
    @FlagValidator(value = {"1", "2"}, message = "性别错误")
    private Integer sex;
}
